﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SharingCenter.Web.User.Contact
{
    using SharingCenter.Web.Classes;
    using SharingCenter.Web.Classes.Contact;
    using SharingCenter.Web.Classes.enums;
    using SharingCenter.Web.Classes.Visits;


    public partial class Visits : ContactPageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            VisitLsit1.ContextId = Profile.UserId;
            //BindVisitList();
        }

        private void BindVisitList()
        {
            //ListView1.DataSource = VisitOperations.GetVisitors(EntityType.User, Profile.UserId, SortDirection.Descending);
            //ListView1.DataBind();
        }

        protected void lblVisitDate_PreRender(object sender, EventArgs e)
        {
            Label lastVisitDate = (Label)sender;
            lastVisitDate.Text = Utility.FriendlyDateTime(lastVisitDate.Text, TimeDisplayEnum.LiteralHoursNoTimeInOtherDays, false);
        }
    }
}
